<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="王佳佳">
    <title>下拉菜单</title>
<style>
    *
    {
        box-sizing: border-box;
    }
    body
    {
        margin: 0;
    }
    nav
    {
        width: 100%;
        height: 60px;
        background-color: #272A27;
    }
    .all
    {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 900px;
        height: 60px;
        line-height: 60px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        background-color: #272A27;
        color: white;
    }
    .vip
    {
        color: #B5A682;
    }
    .all>li
    {
        cursor: pointer;
    }
    .all>li:hover
    {
        color: #B5A682;
    }
    .watchmovie:hover .movie
    {
        display: block;
    }
    .watchtv:hover .tv
    {
        display: block;
    }
    .movie
    {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 120px;
        height: 80px;
        line-height: 40px; 
        text-align: center;
        position: absolute; 
        background-color: #262926;
        color: white;
        opacity: 0.9;
        display: none;
    } 
    .movie li:hover
    {
        background-color: #B5A682;
    }
    .tv
    {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 120px;
        height: 160px;
        line-height: 40px;
        text-align: center;
        position: absolute; 
        background-color: #262926;
        color: white;
        opacity: 0.9;
        margin-left: -5px;
        display: none;
    }
    .tv li:hover
    {
        background-color: #B5A682;
    }
</style>
</head>
<body>
    <nav>
        <ul class="all">
            <li class="vip">会员首页</li>
            <li class="watchmovie">看电影
                <ul class="movie">
                    <li>华语电影</li>
                    <li>海外大片</li>
                </ul> 
            </li>
            <li class="watchtv">看剧
                <ul class="tv">
                    <li>美剧</li>
                    <li>英剧</li>
                    <li>港剧</li>
                    <li>韩剧</li>
                </ul> 
            </li>
            <li>看动漫</li>
            <li>纪录片</li>
            <li>德云社</li>
            <li>看直播</li>
        </ul>
    </nav>
</body>
</html>